<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: Parser recovery after invalid '['</title>
  <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors"/>
  <meta name="flags" content="invalid" />
  <meta name="assert" content="When an invalid '[' is encountered where a
                               selector is expected, the CSS parser skips to
                               the matching ']' and then ignores the following
                               ruleset."/>
  <style type="text/css"><![CDATA[
      p { color: red; }
      [
      p { color: red !important; }
      p { color: red !important; }
      ] p { color: red !important; }
      p { color: green; }
  ]]></style>
 </head>
 <body>
   <p>This text should be green.</p>
 </body>
</html>
